ScssPhp\ScssPhp\Compiler D

Total Complexity 1,712
Dependencies 40
Dependents 5
Total lines 9,682
Lines of code 5,383
Logical lines of code 3,587
Comment lines 2,136
Methods 285
Properties 129

Methods 285

Method Rating Maintainability Complexity Lines of code
compileChild()
D
3
119 374
compileValue()
D
18
72 193
reduce()
D
28
49 109
alterColor()
D
29 42 101
libHsl()
C
37 32 62
cssValidArg()
C
36 30 74
matchExtends()
C
33 29 89
compileMediaQuery()
C
34 28 90
matchExtendsSingle()
C
34 28 86
coerceColor()
C
35 27 84
compileString()
C
32 24 96
libJoin()
B
40 24 53
evaluateArguments()
B
37 21 72
applyArguments()
B
39 18 64
unifyCompoundSelectors()
B
41 17 59
fncall()
B
43 17 45
get()
B
44 17 43
isSuperSelector()
B
42 16 57
verifyPrototype()
A
43 15 45
evaluateMediaQuery()
A
44 15 42
mergeMediaTypes()
A
47 14 41
filterScopeWithWithout()
A
43 13 49
setExisting()
A
46 13 39
joinSelectors()
A
46 13 38
isWith()
A
49 13 29
multiplySelectors()
A
46 12 39
combineSelectorSingle()
A
47 12 36
libIndex()
A
48 12 31
sortNativeFunctionArgs()
A
44 11 42
getFunctionReference()
A
51 12 23
flattenSelectors()
A
46 11 38
escapeNonPrintableChars()
A
48 11 33
inspectFormatValue()
A
48 11 32
compileDirective()
A
49 11 29
libRgb()
A
47 10 37
evalSelectorPart()
A
55 11 17
compileColorPartValue()
A
50 10 30
normalizeValue()
A
49 10 29
pushOrMergeExtentedSelector()
A
50 10 28
compileMedia()
A
45 9 43
mergeDirectRelationships()
A
51 10 26
libAppend()
A
50 10 25
glueFunctionSelectors()
A
53 10 22
getTypeOf()
A
54 10 21
multiplyMedia()
A
47 9 36
getSelectorArg()
A
49 9 30
opAnd()
A
58 10 14
compileImport()
A
50 9 29
opOr()
A
58 10 14
selectorAppend()
A
51 9 28
findImport()
A
52 9 25
checkPrototypeMatches()
A
52 9 25
compileChildrenNoReturn()
A
54 9 20
callStackMessage()
A
53 9 20
compileWith()
A
48 8 33
mergeParts()
A
51 8 29
stringifyFncallArgs()
A
50 8 28
modifyNestedMap()
A
51 8 28
coerceList()
A
51 8 27
appendRootDirective()
A
51 8 26
compileAtRoot()
A
46 7 39
matchPartInCompound()
A
53 8 24
coerceValue()
A
54 8 23
isFreshCachedResult()
A
54 8 21
callNativeFunction()
A
53 8 20
collapseSelectorsAsList()
A
49 7 34
parseFunctionPrototype()
A
48 7 33
extendOrReplaceSelectors()
S
51 7 26
libMapMerge()
S
52 7 23
selectFunctionPrototype()
S
54 7 21
expToString()
S
55 7 20
compileNestedBlock()
S
48 6 32
libListSeparator()
S
56 7 16
applyArgumentsToDeclaration()
S
50 6 28
libZip()
S
52 6 26
libMix()
S
52 6 22
flattenSelectorSingle()
S
56 6 19
libMapGet()
S
55 6 19
hueToRGB()
S
57 6 17
libMapHasKey()
S
56 6 16
injectVariables()
S
58 6 15
checkSelectorArgType()
S
59 6 14
hasSelectorPlaceholder()
S
60 6 13
findScopeSelectors()
S
61 6 13
libStrSlice()
S
51 5 27
shouldEval()
S
61 6 12
completeScope()
S
61 6 11
libRandom()
S
51 5 25
toHSL()
S
52 5 23
evalSelectors()
S
53 5 22
callScssFunction()
S
53 5 22
compileNestedPropertiesBlock()
S
53 5 22
appendOutputLine()
S
55 5 20
libMapRemove()
S
56 5 18
opAdd()
S
58 5 17
escapeImportPathString()
S
57 5 17
replaceSelfSelector()
S
58 5 16
testWithWithout()
S
68 6 6
tryMap()
S
60 5 15
extractRelationshipFromFragment()
S
58 5 15
fixColor()
S
59 5 14
handleImportLoop()
S
59 5 14
libKeywords()
S
58 5 14
libMax()
S
60 5 13
importFile()
S
50 4 28
libMin()
S
60 5 13
isSuperPart()
S
60 5 13
compileBlock()
S
54 4 22
libSelectorNest()
S
53 4 22
libCall()
S
54 4 20
RGBtoHWB()
S
56 4 17
libInvert()
S
56 4 16
stringTransformAsciiOnly()
S
58 4 16
compileSelectorPart()
S
58 4 16
missingSelectors()
S
58 4 15
libAdjustColor()
S
60 4 15
getPrettyPath()
S
59 4 15
listSeparatorForJoin()
S
59 4 14
filterWithWithout()
S
59 4 14
libSetNth()
S
59 4 14
checkImportPathConflicts()
S
60 4 13
compileCommentValue()
S
62 4 13
libFunctionExists()
S
59 4 13
libGetFunction()
S
60 4 12
libSelectorReplace()
S
61 4 11
libSelectorExtend()
S
61 4 11
compileStringContent()
S
62 4 11
makeOutputBlock()
S
55 3 19
libStrInsert()
S
56 3 19
collapseSelectors()
S
57 3 18
HWBtoRGB()
S
57 3 16
toRGB()
S
57 3 15
extractSlashAlphaInColorFunction()
S
64 4 9
backPropagateEnv()
S
67 4 7
getArgumentListKeywords()
S
68 4 6
libNth()
S
62 4 10
addVariables()
S
65 4 8
mediaParent()
S
65 4 9
addLocationToMessage()
S
60 3 13
opColorColor()
S
61 3 12
libStrIndex()
S
60 3 12
libSelectorAppend()
S
61 3 12
compileDebugValue()
S
62 3 12
libScaleColor()
S
61 3 12
mergeMaps()
S
61 3 12
libSelectorUnify()
S
61 3 12
compileChildren()
S
62 3 12
adjustHsl()
S
60 3 12
checkCompatibleTags()
S
62 3 12
resolveImportPath()
S
61 3 12
set()
S
63 3 11
extractInterpolation()
S
61 3 11
pushExtends()
S
62 3 11
opNumberColor()
S
62 3 11
opColorNumber()
S
62 3 11
tryImportPath()
S
63 3 11
findTagName()
S
67 3 8
libIsBracketed()
S
66 3 8
libUniqueId()
S
61 3 10
libComparable()
S
64 3 10
mapHasKey()
S
64 3 9
mapGetEntryIndex()
S
64 3 9
libUnquote()
S
58 2 15
libAlpha()
S
69 3 6
libIeHexStr()
S
64 3 8
__construct()
S
63 3 10
getBuiltinFunction()
S
64 3 10
opNeq()
S
65 3 9
isImmediateRelationshipCombinator()
S
78 3 3
parserFactory()
S
62 3 10
isSelfExtend()
S
67 3 8
setOutputStyle()
S
64 3 10
assertString()
S
63 3 10
isPseudoSelector()
S
65 3 9
addParsedFile()
S
71 3 5
isNativeFunction()
S
67 3 7
opEq()
S
65 3 9
pushCallStack()
S
60 2 13
compileSelector()
S
63 2 12
pushEnv()
S
62 2 11
libSimpleSelectors()
S
62 2 11
compileImportPath()
S
62 2 11
compileKeyframeBlock()
S
57 1 16
isTruthy()
S
79 2 3
assertNumber()
S
68 2 7
libOpacify()
S
66 2 7
libTransparentize()
S
66 2 7
prependSelectors()
S
67 2 8
setImportPaths()
S
64 2 10
addImportPath()
S
72 2 5
compileDirectiveName()
S
72 2 6
getStoreEnv()
S
79 2 3
setRaw()
S
71 2 6
libFeatureExists()
S
67 2 7
modifyMap()
S
70 2 6
extractEnv()
S
69 2 7
compactEnv()
S
71 2 6
getStringText()
S
70 2 6
toBool()
S
80 2 3
libSaturate()
S
63 2 10
libGrayscale()
S
67 2 7
assertColor()
S
68 2 7
mapGet()
S
68 2 7
coerceMap()
S
69 2 7
error()
S
69 2 7
libChangeColor()
S
67 2 8
tryImportPathWithExtensions()
S
65 2 10
libRed()
S
67 2 7
libGreen()
S
67 2 7
libBlue()
S
67 2 7
libOpacity()
S
69 2 7
registerFunction()
S
69 2 6
libIf()
S
68 2 7
maybeReduce()
S
71 2 6
tryImportPathAsDirectory()
S
70 2 6
compileRGBAValue()
S
70 2 6
coerceForExpression()
S
72 2 6
assertInteger()
S
67 2 7
assertList()
S
68 2 7
assertMap()
S
66 2 8
coerceString()
S
68 2 7
normalizeNativeFunctionName()
S
63 1 11
evalSelector()
S
78 1 3
libStrLength()
S
71 1 5
setLogger()
S
81 1 3
libToLowerCase()
S
69 1 6
libToUpperCase()
S
69 1 6
opModNumberNumber()
S
80 1 3
libRgba()
S
79 1 3
compileRoot()
S
68 1 7
opDivNumberNumber()
S
80 1 3
libMixinExists()
S
71 1 5
libGlobalVariableExists()
S
71 1 5
compileComment()
S
69 1 6
libVariableExists()
S
71 1 5
opSubNumberNumber()
S
80 1 3
opMulNumberNumber()
S
80 1 3
opAddNumberNumber()
S
80 1 3
libInspect()
S
75 1 4
opEqNumberNumber()
S
80 1 3
libSelectorParse()
S
72 1 5
getCompileOptions()
S
64 1 10
formatOutputSelector()
S
77 1 4
libIsSuperselector()
S
69 1 6
popCallStack()
S
81 1 3
normalizeName()
S
79 1 3
libDarken()
S
70 1 5
opNeqNumberNumber()
S
79 1 3
setCharset()
S
81 1 3
libAbs()
S
73 1 4
libCeil()
S
73 1 4
libFloor()
S
73 1 4
libRound()
S
73 1 4
libPercentage()
S
71 1 5
libQuote()
S
72 1 5
libFadeOut()
S
80 1 3
libHue()
S
70 1 5
libLightness()
S
70 1 5
libFadeIn()
S
80 1 3
setSourceMapOptions()
S
81 1 3
setSourceMap()
S
81 1 3
libComplement()
S
77 1 3
libAdjustHue()
S
71 1 5
libDesaturate()
S
70 1 5
libSaturation()
S
70 1 5
libLength()
S
73 1 4
libUnitless()
S
74 1 4
popEnv()
S
77 1 4
libUnit()
S
74 1 4
opGteNumberNumber()
S
80 1 3
libLighten()
S
70 1 5
opGtNumberNumber()
S
80 1 3
opLteNumberNumber()
S
80 1 3
opLtNumberNumber()
S
80 1 3
isCssImport()
S
78 1 3
registerImport()
S
77 1 3
libHsla()
S
79 1 3
has()
S
78 1 3
libMapValues()
S
71 1 5
libMapKeys()
S
71 1 5
replaceVariables()
S
76 1 4
unregisterFunction()
S
79 1 3
unsetVariable()
S
80 1 3
getVariables()
S
82 1 3
libTypeOf()
S
75 1 4